<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		

		sex = prompt("你是女的还是男的");

		if(sex=="男"){
			age  = prompt("小伙子你多少岁了？");
			if(age>20){
				document.write("小伙子可以泡妞了，叔叔来了！");
			}else{
				document.write("小伙子还小，好好读书，叔叔来了！");
			}
		}else if(sex=="女"){
			document.write("小姑娘不要怕，叔叔来了！");
		}else{
			document.write("输入错误，请正确的输入'男'或'女'");
		}


	</script>
</head>
<body>
	
</body>
</html>